package com.lin.zoo.view;

import javax.swing.*;

public class Result extends JPanel {
    private JLabel labAccount = new JLabel();

    public JLabel getLabAccount() {
        return labAccount;
    }

    public void setLabAccount(JLabel labAccount) {
        this.labAccount = labAccount;
    }


    public Result(String text) {
        init(text);
        add(labAccount);
        setLayout(null);
    }

    private void init(String text){

        labAccount.setSize(200,100);
        labAccount. setLocation(230,90);
        labAccount.setText(text);
    }
}
